package com.ruoyi.mes.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.mes.vo.product.BomMtrVo;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 车间任务卡对象 task_info
 *
 * @author LongAndHao
 * @date 2023-04-04
 */
public class TaskCart extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long taskCardId;

    /** 生产计划明细ID */
    private Long progDetailId;

    /** 车间任务ID */
    private Long wkspTaskId;

    /** 任务卡编号 */
    @Excel(name = "任务卡编号")
    private String takCardCode;

    /** 需报工次数 */
    private Long taskNeedRptNum;

    /** 已报工次数 */
    private Long taskReadyRptNum;

    /** 已报工顺序 */
    private Long rptProceSeque;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date overTime;

    /** 0 - 未开工 1 - 生产中 2 -已完工 3 - 已取消 */
    @Excel(name = "状态")
    private Long status;

    /** 车间任务编码 */
    @TableField(exist = false)
    private String wkspCode;

    /** 产品编码 */
    @TableField(exist = false)
    private String proCode;

    /** 产品名称 */
    @TableField(exist = false)
    private String proName;

    /** 车间任务生产进度 */
    @TableField(exist = false)
    private float WkspTaskProductionSchedule;

    /** 任务卡生产进度 */
    @TableField(exist = false)
    private float TaskCartProductionSchedule;

    public float getWkspTaskProductionSchedule() {
        return WkspTaskProductionSchedule;
    }

    public void setWkspTaskProductionSchedule(float wkspTaskProductionSchedule) {
        WkspTaskProductionSchedule = wkspTaskProductionSchedule;
    }

    public float getTaskCartProductionSchedule() {
        return TaskCartProductionSchedule;
    }

    public String getWkspCode() {
        return wkspCode;
    }

    public void setWkspCode(String wkspCode) {
        this.wkspCode = wkspCode;
    }

    public String getProCode() {
        return proCode;
    }

    public void setProCode(String proCode) {
        this.proCode = proCode;
    }

    public String getProName() {
        return proName;
    }

    public void setProName(String proName) {
        this.proName = proName;
    }

    public void setTaskCartProductionSchedule(float taskCartProductionSchedule) {
        TaskCartProductionSchedule = taskCartProductionSchedule;
    }

    public void setTaskCardId(Long taskCardId)
    {
        this.taskCardId = taskCardId;
    }

    public Long getTaskCardId()
    {
        return taskCardId;
    }

    public Long getProgDetailId() {
        return progDetailId;
    }

    public void setProgDetailId(Long progDetailId) {
        this.progDetailId = progDetailId;
    }

    public void setWkspTaskId(Long wkspTaskId)
    {
        this.wkspTaskId = wkspTaskId;
    }

    public Long getWkspTaskId()
    {
        return wkspTaskId;
    }
    public void setTakCardCode(String takCardCode)
    {
        this.takCardCode = takCardCode;
    }

    public String getTakCardCode()
    {
        return takCardCode;
    }
    public void setTaskNeedRptNum(Long taskNeedRptNum)
    {
        this.taskNeedRptNum = taskNeedRptNum;
    }

    public Long getTaskNeedRptNum()
    {
        return taskNeedRptNum;
    }
    public void setTaskReadyRptNum(Long taskReadyRptNum)
    {
        this.taskReadyRptNum = taskReadyRptNum;
    }

    public Long getTaskReadyRptNum()
    {
        return taskReadyRptNum;
    }

    public Long getRptProceSeque() {
        return rptProceSeque;
    }

    public void setRptProceSeque(Long rptProceSeque) {
        this.rptProceSeque = rptProceSeque;
    }

    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setOverTime(Date overTime)
    {
        this.overTime = overTime;
    }

    public Date getOverTime()
    {
        return overTime;
    }
    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("taskCardId", getTaskCardId())
            .append("progId", getProgDetailId())
            .append("wkspTaskId", getWkspTaskId())
            .append("takCardCode", getTakCardCode())
            .append("taskNeedRptNum", getTaskNeedRptNum())
            .append("taskReadyRptNum", getTaskReadyRptNum())
            .append("startTime", getStartTime())
            .append("overTime", getOverTime())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
